package com.bsoft.gol.hcb.service.templateSheet.rpc.impl;

import com.bsoft.gol.hcb.service.templateSheet.rpc.IVisitModuleRpcService;
import com.bsoft.gol.hcb.service.templateSheet.rpc.entity.VisitModule;
import com.bsoft.gol.hcb.service.templateSheet.utils.RpcEntityParseUtils;
import ctd.net.rpc.Client;
import org.springframework.stereotype.Service;

/**
 * 随访配置--模块rpc
 *
 * @author  jinm
 */
@Service
public class VisitModuleRpcServiceImpl implements IVisitModuleRpcService {

	@Override
	public VisitModule getById(Integer id) throws Exception {
		return RpcEntityParseUtils.psrse(Client.rpcInvoke("pcnArchiveVisit.visitModuleService","getById",id),VisitModule.class);
	}
}
